package model.sales;
// Generated Feb 14, 2013 10:33:00 PM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TrsSalesInit generated by hbm2java
 */
@Entity
@Table(name="trs_sales_init", schema="sales")
public class SalesInit  implements java.io.Serializable {

     private long id;
     private Date transDate;
     private Date closeTime;
     private Integer shiftId;
     private String pcId;
     private BigDecimal modal;
     private BigDecimal tunai;
     private BigDecimal debit;
     private BigDecimal retur;
     private BigDecimal diskon;
     private BigDecimal kupon;
     private BigDecimal tarikTunai;
     private BigDecimal simpanan;
     private BigDecimal sumbangan;
     private BigDecimal terimaTunai;
     private BigDecimal hpp;
     private BigDecimal ppn;
     private BigDecimal margin;
     private BigDecimal salesNet;
     private BigDecimal returNet;
     private BigDecimal varian;
     private String userClosed;
     private String userInserted;

    public SalesInit() {
    }

	
    public SalesInit(long id) {
        this.id = id;
    }
       
    @Id 
    @SequenceGenerator(name="sales_init_seq", sequenceName="sales.trs_sales_init_id_seq", allocationSize=1)
    @GeneratedValue(strategy= GenerationType.SEQUENCE, generator="sales_init_seq")
    @Column(name="id", unique=true, nullable=false)
    public long getId() {
        return this.id;
    }
    
    public void setId(long id) {
        this.id = id;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="trans_date", length=29)
    public Date getTransDate() {
        return this.transDate;
    }
    
    public void setTransDate(Date transDate) {
        this.transDate = transDate;
    }
    
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="close_time", length=29)
    public Date getCloseTime() {
        return this.closeTime;
    }
    
    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }
    
    @Column(name="shift_id")
    public Integer getShiftId() {
        return this.shiftId;
    }
    
    public void setShiftId(Integer shiftId) {
        this.shiftId = shiftId;
    }
    
    @Column(name="pc_id", length=3)
    public String getPcId() {
        return this.pcId;
    }
    
    public void setPcId(String pcId) {
        this.pcId = pcId;
    }
    
    @Column(name="modal", precision=13)
    public BigDecimal getModal() {
        return this.modal;
    }
    
    public void setModal(BigDecimal modal) {
        this.modal = modal;
    }
    
    @Column(name="tunai", precision=13)
    public BigDecimal getTunai() {
        return this.tunai;
    }
    
    public void setTunai(BigDecimal tunai) {
        this.tunai = tunai;
    }
    
    @Column(name="debit", precision=13)
    public BigDecimal getDebit() {
        return this.debit;
    }
    
    public void setDebit(BigDecimal debit) {
        this.debit = debit;
    }
    
    @Column(name="retur", precision=13)
    public BigDecimal getRetur() {
        return this.retur;
    }
    
    public void setRetur(BigDecimal retur) {
        this.retur = retur;
    }
    
    @Column(name="diskon", precision=13)
    public BigDecimal getDiskon() {
        return this.diskon;
    }
    
    public void setDiskon(BigDecimal diskon) {
        this.diskon = diskon;
    }
    
    @Column(name="kupon", precision=13)
    public BigDecimal getKupon() {
        return this.kupon;
    }
    
    public void setKupon(BigDecimal kupon) {
        this.kupon = kupon;
    }
    
    @Column(name="tarik_tunai", precision=13)
    public BigDecimal getTarikTunai() {
        return this.tarikTunai;
    }
    
    public void setTarikTunai(BigDecimal tarikTunai) {
        this.tarikTunai = tarikTunai;
    }
    
    @Column(name="simpanan", precision=13)
    public BigDecimal getSimpanan() {
        return this.simpanan;
    }
    
    public void setSimpanan(BigDecimal simpanan) {
        this.simpanan = simpanan;
    }
    
    @Column(name="sumbangan", precision=13)
    public BigDecimal getSumbangan() {
        return this.sumbangan;
    }
    
    public void setSumbangan(BigDecimal sumbangan) {
        this.sumbangan = sumbangan;
    }
    
    @Column(name="terima_tunai", precision=13)
    public BigDecimal getTerimaTunai() {
        return this.terimaTunai;
    }
    
    public void setTerimaTunai(BigDecimal terimaTunai) {
        this.terimaTunai = terimaTunai;
    }
    
    @Column(name="hpp", precision=13)
    public BigDecimal getHpp() {
        return this.hpp;
    }
    
    public void setHpp(BigDecimal hpp) {
        this.hpp = hpp;
    }
    
    @Column(name="ppn", precision=13)
    public BigDecimal getPpn() {
        return this.ppn;
    }
    
    public void setPpn(BigDecimal ppn) {
        this.ppn = ppn;
    }
    
    @Column(name="margin", precision=13)
    public BigDecimal getMargin() {
        return this.margin;
    }
    
    public void setMargin(BigDecimal margin) {
        this.margin = margin;
    }
    
    @Column(name="sales_net", precision=13)
    public BigDecimal getSalesNet() {
        return this.salesNet;
    }
    
    public void setSalesNet(BigDecimal salesNet) {
        this.salesNet = salesNet;
    }
    
    @Column(name="retur_net", precision=13)
    public BigDecimal getReturNet() {
        return this.returNet;
    }
    
    public void setReturNet(BigDecimal returNet) {
        this.returNet = returNet;
    }
    
    @Column(name="varian", precision=13)
    public BigDecimal getVarian() {
        return this.varian;
    }
    
    public void setVarian(BigDecimal varian) {
        this.varian = varian;
    }

    @Column(name="user_closed", length=50)
    public String getUserClosed() {
        return userClosed;
    }

    public void setUserClosed(String userClosed) {
        this.userClosed = userClosed;
    }

    @Column(name="user_inserted", length=50)
    public String getUserInserted() {
        return userInserted;
    }

    public void setUserInserted(String userInserted) {
        this.userInserted = userInserted;
    }
      
    
}


